﻿using Furion.DatabaseAccessor;
using ST.Torch.WebApi.Core.Entities.System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ST.Torch.WebApi.Core.Entities.Utils
{

    public class FormData : BaseEntity, IEntityTypeBuilder<FormData>
    {
        public string Title { get; set; }
        public string ImgUrl { get; set; }
        public int City { get; set; }
        public string Like { get; set; }

        public bool Switch { get; set; }
        public SexEnum Sex { get; set; }
        public string Desc { get; set; }
        public string DescTinymce { get; set; }



        public void Configure(EntityTypeBuilder<FormData> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.HasKey(u => u.Id);
        }
    }

  
    public enum LikeEnum
    {
        /// <summary>
        /// 写作
        /// </summary>
        Write,
        /// <summary>
        /// 阅读
        /// </summary>
        Read,
        /// <summary>
        /// 发呆
        /// </summary>
        Dai
    }
}
